package cn.supermaster.management.web.controller.finance;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * All rights Reserved, Designed By www.super-master.cn
 *
 * @ProjectName: supermaster-management
 * @Package: cn.supermaster.management.web.controller.finance
 * @ClassName: FinanceAccountController
 * @Description: []
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2021/2/21 20:43
 * @Version: V1.0
 * @Copyright: 2021 www.super-master.cn Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
@Controller
@RequestMapping("/finance/account")
public class FinanceAccountController {

    private String prefix = "/finance/account";

    @RequiresPermissions("finance:account:view")
    @GetMapping("/view")
    public String skipAccountIndexHtml() {
        return prefix + "/view";
    }

    @GetMapping("/add")
    public String skipAccountAddHtml() {
        return prefix + "/add";
    }
}